package com.example.as.entity;

import com.baomidou.mybatisplus.annotation.TableName;

import java.sql.Timestamp;

@TableName("record")
public class Record {
    private int id;
    private Timestamp timeStamp;
    private String sender;
    private String receiver;
    private String message;
    private int messageType;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Timestamp getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(Timestamp timeStamp) {
        this.timeStamp = timeStamp;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getMessageType() {
        return messageType;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }

    @Override
    public String toString() {
        return "Record{" +
                "id=" + id +
                ", timeStamp=" + timeStamp +
                ", sender=" + sender +
                ", receiver=" + receiver +
                ", message='" + message + '\'' +
                ", messageType=" + messageType +
                '}';
    }
}
